/* 全局 */
#app, body, html {
  width: 100%;
  height: 100%;
  background-color: #f6f8f9;
  font-size: 12px;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover, a:focus {
  color: #000;
  text-decoration: none;
}

a:link {
  text-decoration: none;
}

a:-webkit-any-link {
  text-decoration: none;
}

a, button, input, textarea {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  outline: none !important;
  -webkit-appearance: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

/* 全局滚动条样式 */
.scrollable {
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(50, 50, 50, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(50, 50, 50, 0.6);
}

::-webkit-scrollbar-track {
  background-color: rgba(50, 50, 50, 0.1);
}

::-webkit-scrollbar-track:hover {
  background-color: rgba(50, 50, 50, 0.2);
}

/* 对话框样式 */
.el-dialog {
  border: 1px solid var(--el-border-color-light);
}

.el-drawer {
  border: 1px solid var(--el-border-color-light);
}

.el-message {
  border: 1px solid var(--el-border-color-light);
}

.el-message-box {
  border: 1px solid var(--el-border-color-light);
}

.el-notification {
  border: 1px solid var(--el-border-color-light);
}

/* 对话框圆角 */
.el-dialog__wrapper {
  .el-dialog {
    border-radius: 10px;
  }
}

/* 布局设置 */
.layout-setting {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 3px 0 0 3px;
  bottom: 100px;
  right: 0;
  z-index: 100;
  background: #409EFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.layout-setting i {
  font-size: 18px;
  color: #fff;
}

/* 页面最大化 */
.main-ui.main-maximize {
  .main-maximize-exit {
    display: block;
  }

  .main-ui-side-split, .main-ui-side, .admin-ui-header, .admin-ui-top-bar, .admin-ui-tags {
    display: none;
  }
}

.main-maximize-exit {
  display: none;
  position: fixed;
  z-index: 3000;
  top: -20px;
  left: 50%;
  margin-left: -20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.main-maximize-exit i {
  font-size: 14px;
  margin-top: 22px;
  color: #fff;
}

.main-maximize-exit:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* 定宽页面 */
.jcx-page {
  width: 1230px;
  margin: 0 auto;
}

/* 克隆并自定义 ElMessage 样式，不会影响 ElMessage 原本样式，在 src/utils/modal 中调用自定义样式 ElMessage 方法即可，暗黑模式在 assets/style/dark.scss 文件进行了适配 */
.jcx-message {
  padding: 10px 13px !important;
  background: #fff !important;
  box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d !important;
  border: 1px solid var(--el-border-color-light);

  &.el-message.is-closable .el-message__content {
    padding-right: 17px !important;
  }

  & .el-message__content {
    color: #000000d9 !important;
    pointer-events: all !important;
    background-image: initial !important;
  }

  & .el-message__icon {
    margin-right: 8px !important;
  }

  & .el-message__closeBtn {
    right: 9px !important;
    border-radius: 4px;
    outline: none;
    transition: background-color 0.2s, color 0.2s;

    &:hover {
      background-color: rgb(0 0 0 / 6%);
    }
  }
}

.jcx-table-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.jcx-table-pagination {

}

.jcx-table-do {
  white-space: nowrap;
}

.lf-dndpanel {
  background-color: #fff !important;
}

.lf-control {
  background-color: #fff !important;
}

/* 大布局样式 */
.main-ui {
  display: flex;
  flex-flow: column;
}

.main-ui-wrapper {
  display: flex;
  flex: 1;
  overflow: auto;
}

/* 头部 */
.admin-ui-header {
  height: 58px;
  background: #222b45;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.admin-ui-header-left {
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.admin-ui-header-right {
  display: flex;
  align-items: center;
}

.admin-ui-header .logo-bar {
  font-size: 20px;
  font-weight: bold;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.admin-ui-header .logo-bar .logo {
  margin-right: 10px;
  width: 35px;
  height: 35px;
}

.admin-ui-header .nav {
  display: flex;
  height: 100%;
  margin-left: 40px;
}

.admin-ui-header .nav li {
  padding: 0 10px;
  margin: 0 10px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.admin-ui-header .nav li i {
  margin-right: 5px;
}

.admin-ui-header .nav li:hover {
  color: #fff;
}

.admin-ui-header .nav li.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-ui-header .user-bar .panel-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.admin-ui-header .user-bar .user label {
  color: #fff;
}

/* 左侧菜单 */
.main-ui-side-split {
  width: 65px;
  flex-shrink: 0;
  background: #222b45;
  display: flex;
  flex-flow: column;
}

.main-ui-side-split-top {
  height: 49px;
}

.main-ui-side-split-top a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-ui-side-split-top .logo {
  height: 30px;
  vertical-align: bottom;
}

.admin-ui-side-split-scroll {
  overflow: auto;
  overflow-x: hidden;
  height: 100%;
  flex: 1;
}

.main-ui-side-split li {
  cursor: pointer;
  width: 65px;
  height: 65px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-ui-side-split li i {
  font-size: 18px;
}

.main-ui-side-split li p {
  margin-top: 5px;
}

.main-ui-side-split li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-ui-side-split li.active {
  background: #409EFF;
}

.admin-ui-side-split-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
}

.admin-ui-side-split-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.admin-ui-side-split-scroll::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0);
}

.admin-ui-side-split-scroll::-webkit-scrollbar-track:hover {
  background-color: rgba(255, 255, 255, 0);
}

.main-ui-side {
  display: flex;
  flex-flow: column;
  flex-shrink: 0;
  width: 210px;
  background: #fff;
  box-shadow: 2px 0 8px 0 rgba(29, 35, 41, .05);
  border-right: 1px solid #e6e6e6;
  transition: width 0.3s;
}

.admin-ui-side-top {
  border-bottom: 1px solid #ebeef5;
  height: 50px;
  line-height: 50px;
}

.admin-ui-side-top h2 {
  padding: 0 20px;
  font-size: 17px;
  color: #3c4a54;
}

.admin-ui-side-scroll {
  overflow: auto;
  overflow-x: hidden;
  flex: 1;
}

.admin-ui-side-bottom {
  border-top: 1px solid #ebeef5;
  height: 51px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-ui-side-bottom i {
  font-size: 16px;
}

.admin-ui-side-bottom:hover {
  color: var(--el-color-primary);
}

.main-ui-side.isCollapse {
  width: 65px;
}

.el-menu .menu-tag {
  position: absolute;
  height: 18px;
  line-height: 18px;
  background: var(--el-color-danger);
  font-size: 12px;
  color: #fff;
  right: 20px;
  border-radius: 18px;
  padding: 0 6px;
}

.el-menu .el-sub-menu__title .menu-tag {
  right: 40px;
}

.el-menu--horizontal > li .menu-tag {
  display: none;
}

/* 右侧内容 */
.main-ui-body {
  flex: 1;
  display: flex;
  flex-flow: column;
}

.admin-ui-top-bar {
  height: 50px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  display: flex;
  justify-content: space-between;
}

.admin-ui-top-bar .left-panel {
  display: flex;
  align-items: center;
}

.admin-ui-top-bar .right-panel {
  display: flex;
  align-items: center;
}

.left-panel-search {
  display: flex;
  align-items: center;
}

.left-panel-search > * + * {
  margin-left: 10px;
}

.right-panel-search {
  display: flex;
  align-items: center;
}

.right-panel-search > * + * {
  margin-left: 10px;
}

.admin-ui-tags {
  height: 40px;
  line-height: 40px;
  background: var(--el-bg-color-overlay);
  border-bottom: 1px solid var(--el-border-color-light);
}

.admin-ui-tags ul {
  display: flex;
  overflow: hidden;
}

.admin-ui-tags li {
  padding: 0;
  cursor: pointer;
  display: inline-block;
  float: left;
  height: 38px;
  line-height: 38px;
  position: relative;
  flex-shrink: 0;
}

.admin-ui-tags li:hover:not(.active):not(.active-radius)::after {
  z-index: 1;
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: rgba(33, 31, 31, 0.1);
  border-radius: 10px;
  pointer-events: none;
}

.admin-ui-tags li:hover:not(.active):not(.active-radius) a {
  color: var(--el-color-primary);
}

.admin-ui-tags li.active {
  background: var(--el-color-primary);
  border-radius: 10px;
}

.admin-ui-tags li.active a {
  color: #fff;
}

.admin-ui-tags li.sortable-ghost {
  opacity: 0;
}

.admin-ui-tags li.active-radius {
  background: var(--el-color-primary);
  z-index: 0;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 12px 15px 0 0 var(--el-color-primary), -12px 15px 0 0 var(--el-color-primary);
}

.admin-ui-tags li.active-radius a {
  color: #fff;
}

.admin-ui-tags li.active-radius a:hover {
  color: #fff;
}

.admin-ui-tags li.active-radius::before {
  content: '';
  position: absolute;
  left: -13px;
  bottom: 1px;
  width: 13px;
  height: 38px;
  background: var(--el-bg-color-overlay);
  border-radius: 0 0 20px 0;
}

.admin-ui-tags li.active-radius::after {
  content: '';
  position: absolute;
  right: -13px;
  bottom: 1px;
  width: 13px;
  height: 38px;
  background: var(--el-bg-color-overlay);
  border-radius: 0 0 0 20px;
}

.admin-ui-tags li a {
  padding: 0 10px;
  width: 100%;
  height: 100%;
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.admin-ui-tags li a:hover {
  color: #fff;
}

.admin-ui-tags li i {
  margin-left: 10px;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-ui-tags li i:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 100%;
}

.admin-ui-main {
  overflow: auto;
  background-color: #f6f8f9;
  flex: 1;
}
